import { http } from "@/utils";

export const getArticlesListApi = (params) => {
  return http({
  url: '/mp/articles',
  method: 'GET',
  params
 }) 
} 

export const deleteArticlesListApi = (id) => {
  return http({
    url: `mp/articles/${id}`,
    method: 'DELETE'
  })
}

export const getArticlesApi = (id) => {
  return http({
    url: `mp/articles/${id}`,
    method: 'GET'
  })
}